package com.forlgb.powercloud.base.client.source.init;

import com.forlgb.powercloud.base.client.source.config.MyInvocationSecurityMetadataSourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
public class AuthorityInitialize implements ApplicationRunner {

    @Autowired
    private MyInvocationSecurityMetadataSourceService myInvocationSecurityMetadataSourceService;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        myInvocationSecurityMetadataSourceService.loadResourceDefine();
    }
}
